import request from '@/utils/request'

// 查询库位档案列表
export function listBin(query) {
  return request({
    url: '/system/bin/list',
    method: 'get',
    params: query
  })
}

// 查询库位档案详细
export function getBin(binId) {
  return request({
    url: '/system/bin/' + binId,
    method: 'get'
  })
}

// 新增库位档案
export function addBin(data) {
  return request({
    url: '/system/bin',
    method: 'post',
    data: data
  })
}

// 修改库位档案
export function updateBin(data) {
  return request({
    url: '/system/bin',
    method: 'put',
    data: data
  })
}

// 删除库位档案
export function delBin(binId) {
  return request({
    url: '/system/bin/' + binId,
    method: 'delete'
  })
}
